﻿<%@ Page Language="C#" MasterPageFile="~/InventoryTracker/MasterPage.master" AutoEventWireup="true" CodeFile="Customer_Details.aspx.cs" Inherits="InventoryTracker_Customer_Details" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="maincontent" Runat="Server">

<div id="projectreport">
        <a name="content_start0" id="content_start0"></a>
        <fieldset>
            <h2 class="none">
                Customer Details</h2>
            <legend>Customer Information</legend>
            <div class="formsection">
                Customer</div>
                
                <asp:DropDownList ID="ddrCustDet" runat="server" 
                DataSourceID="CustIdDaSo" DataTextField="CustName" DataValueField="CustID"></asp:DropDownList>
                
                <asp:SqlDataSource ID="CustIdDaSo" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                SelectCommand="SELECT [CustID], [CustName] FROM [CustomerMaster]">
            </asp:SqlDataSource>
                
<asp:DataList ID="DataList1" runat="server" CellPadding="4" DataSourceID="CusDetDS" 
                ForeColor="#333333">
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
    <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <ItemTemplate>
        CustName:
        <asp:Label ID="CustNameLabel" runat="server" Text='<%# Eval("CustName") %>' />
        <br />
        CustAddr1:
        <asp:Label ID="CustAddr1Label" runat="server" Text='<%# Eval("CustAddr1") %>' />
        <br />
        CustAddr2:
        <asp:Label ID="CustAddr2Label" runat="server" Text='<%# Eval("CustAddr2") %>' />
        <br />
        CustAddr3:
        <asp:Label ID="CustAddr3Label" runat="server" Text='<%# Eval("CustAddr3") %>' />
        <br />
        CustCity:
        <asp:Label ID="CustCityLabel" runat="server" Text='<%# Eval("CustCity") %>' />
        <br />
        CustState:
        <asp:Label ID="CustStateLabel" runat="server" Text='<%# Eval("CustState") %>' />
        <br />
        CustCountry:
        <asp:Label ID="CustCountryLabel" runat="server" 
            Text='<%# Eval("CustCountry") %>' />
        <br />
        CustPhone:
        <asp:Label ID="CustPhoneLabel" runat="server" Text='<%# Eval("CustPhone") %>' />
        <br />
        CustMobile:
        <asp:Label ID="CustMobileLabel" runat="server" 
            Text='<%# Eval("CustMobile") %>' />
        <br />
        CustFax:
        <asp:Label ID="CustFaxLabel" runat="server" Text='<%# Eval("CustFax") %>' />
        <br />
        CustEmail:
        <asp:Label ID="CustEmailLabel" runat="server" Text='<%# Eval("CustEmail") %>' />
        <br />
        CustZipCode:
        <asp:Label ID="CustZipCodeLabel" runat="server" 
            Text='<%# Eval("CustZipCode") %>' />
        <br />
        CustLeadTime:
        <asp:Label ID="CustLeadTimeLabel" runat="server" 
            Text='<%# Eval("CustLeadTime") %>' />
        <br />
        CustStatus:
        <asp:Label ID="CustStatusLabel" runat="server" 
            Text='<%# Eval("CustStatus") %>' />
        <br />
        <br />
    </ItemTemplate>
            </asp:DataList>
            <asp:SqlDataSource ID="CusDetDS" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                SelectCommand="SELECT [CustName], [CustAddr1], [CustAddr2], [CustAddr3], [CustCity], [CustState], [CustCountry], [CustPhone], [CustMobile], [CustFax], [CustEmail], [CustZipCode], [CustLeadTime], [CustStatus] FROM [CustomerMaster] WHERE ([CustID] = @CustID2)">
                <SelectParameters>
                    <asp:ControlParameter ControlID="DataList1" Name="CustID2" 
                        PropertyName="SelectedValue" Type="Int32" />
                </SelectParameters>
            </asp:SqlDataSource>
<div class="formsection">
            
                <asp:Button ID="btnLocSubmit" runat="server" Text="Submit" 
                    />
                        <asp:Label ID="lblResult" runat="server"></asp:Label>
               
            </div>

</asp:Content>

